#include <stdio.h>
#define M 2
#define N 4
int main(int argc, char *argv[])
{
    int i, j;
    int result = 0;
    int arr[M][N] = {0};
    for (i = 0; i < M; i++) {
        for (j = 0; j < N; j++) {
            arr[i][j] = i + j;
        }
    }
    result = arr[0][0];
    for (i = 0; i < M; i++) {
        for (j = 0; j < N; j++) {
            if (result < arr[i][j]) {
                result = arr[i][j];
            }
        }
    }
    printf("%d\n", result);
    return 0;
}
